<%@page import="cn.sundat.model.Company"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>会员详情</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=10"/>
    <!------css样式------>
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/regulations.css">
    <link rel="stylesheet" href="css/personalCenter.css">
</head>
<body>
<!------IE浏览器判断------>
<!--[if lt IE 9]>
<script type="text/javascript" src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<![endif]-->
<jsp:include page="head.jsp"></jsp:include>
<!------主内容区------>
<div class="main">
    <div class="poistion">
        <h4 class="clearfix">
            <span class="icon icon1"></span><span> 首页>会员专区 </span>
        </h4>
    </div>
    <div id="aside">
        <div class="aside-title">
            <h3>会员专区</h3>
        </div>
        <div class="aside-content">
            <ul class="itemlist">
                <li class="item hover"><a>理事会名单<span class="icon2"></span></a>
                    <ul>
                        <li ><a href="company_findByLevel?currPage=1&level=1">会长副会长名单<i></i></a></li>
                        <li ><a href="company_findByLevel?currPage=1&level=2">常务理事名单<i></i></a></li>
                        <li ><a href="company_findByLevel?currPage=1&level=3">理事单位<i></i></a></li>
                        <li ><a href="company_findByLevel?currPage=1&level=4">会员单位<i></i></a></li>
                    </ul>
                </li>
                <li class="item"><a href="news_findVipNews" >会员风采<span class="icon2"></span></a></li>
            </ul>
        </div>
    </div>
    <div class="modal" id="newsLis">
        <div id="newsList">
            <div class="newsList-content">
                <div class="newsList-title">
                    <h3 class="pull-left left">基本信息</h3>
                    <i></i>
		    <p style="line-height: 60px;font-size: 14px;color: #b15c35;text-align: right;"> * 以下信息由该企业提供，企业对其报送信息的真实性、合法性负责</p>
                </div>
                <div class="newList-main">
                    <p><strong>会员名称：</strong>${company.comp_name }</p>
                    <p id='comp_level'><strong>会员等级：</strong>
			<% 
                    	Company comp = (Company)request.getAttribute("company");
                    	int comp_level = comp.getComp_level();
	                    if(comp_level==1){
	                    	if(comp.getComp_name().contains("新疆友好")){
	                    		out.print("会长");
	                    	}else{
	                    		out.print("副会长");
	                    	}
	                    }else if(comp_level==2){
	                    	out.print("常务理事");
	                    }else if(comp_level==3){
	                    	out.print("理事");
	                    }else if(comp_level==4){
	                    	out.print("会员");
	                    }
                    %>
                    <p>
		    <strong>联系电话：</strong>${company.profile.pro_phone }</p>
                    <p><strong>电子邮箱：</strong>${company.profile.pro_email }</p>
                    <p><strong>企业地址：</strong>${company.profile.pro_address }</p>
                    <div class="txt">
                        <strong>经营范围：</strong>
                        <p>${company.profile.pro_scope }</p>
                    </div>
                    <div class="txt">
                        <strong>企业简介：</strong>
                        <p>${company.profile.pro_intro }</p>
                    </div>
                    <div class="certificate">
                        <strong>荣誉证书：</strong>
                        <c:set var="string1" value="${company.profile.pro_honor }"></c:set>
                        <c:set var="string2" value="${fn:split(string1,', ') }"></c:set>
                        <ul class="clearfix">
                          <c:if test="${not empty string1 }">
	                        	<c:forEach items="${string2 }" var="img">
	                        		<li><img src="upload/companyinfo/${img }"> </li>
	                        	</c:forEach>
	                       </c:if>
                        </ul>
                    </div>
                    <div class="code">
                        <div class="code-head">
                            <img src="images/code.png" alt="扫一扫">
                        </div>
                        <div class="codes">
                            <img src="/xjeca/upload/companyinfo/${company.profile.pro_qrcode }" alt="二维码">
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
<div class="covers"></div>
<div id="sigin" class="modal">
    <h3>用户登录<i></i></h3>
    <form id="loginForm" novalidate="novalidate" action="" class="layui-form">
        <table>
            <tr>
                <td>用户名：</td>
                <td><input type="text" placeholder="请输入公司名称或代码"></td>

            </tr>
            <tr id="user-warning">
                <td></td>
                <td>该用户名不存在</td>
            </tr>
            <tr>
                <td>密&nbsp;&nbsp;&nbsp;码：</td>
                <td><input type="password" placeholder="密码"></td>

            </tr>
            <tr id="pass-warning">
                <td></td>
                <td>密码输入有误</td>
            </tr>
        </table>
        <a class="btn btns1">登录</a>
        <a class="btn btns2">注册</a>
        <a href="forgetPassword.html">
            <span id="forget">忘记密码？</span>
        </a>
    </form>
</div>
<!------页脚------>
<jsp:include page="foot.jsp"></jsp:include>
<!------JS部分------>
<script src="js/regulations.js"></script>
<script>
$('#comp_level').val()
</script>
</body>
</html>
